import React from 'react';

// 导入全局 CSS
import '../src/index.css';

/** @type { import('@storybook/react').Preview } */
export default {
  parameters: {
    actions: { argTypesRegex: "^on[A-Z].*" },
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/,
      },
    },
    backgrounds: {
      default: 'light',
      values: [
        { name: 'light', value: '#ffffff' },
        { name: 'dark', value: '#333333' },
      ],
    },
  },
  decorators: [
    (Story) => {
      return React.createElement('div', { style: { margin: '2em' } },
        React.createElement(Story, null)
      );
    },
  ],
};

